{if $item['status'] == 8}
<a class="btn btn-primary btn-xs" data-toggle="ajaxModal"  href="{php echo web_url('order/wlOrder/send', array('id' => $item['id'],'type' => $item['a']))}">确认发货</a>
{/if}
<!--<a class="btn btn-primary btn-xs" data-toggle="ajaxPost" href="{php echo web_url('order/wlOrder/pay', array('id' => $item['id']))}" data-confirm="确认此订单已付款吗？">确认付款</a>-->
   
{if $item['status'] == 1 && empty($item['pftflag'])}
<a class="btn btn-primary btn-xs" data-toggle='ajaxPost' href="{php echo web_url('order/wlOrder/fetch', array('id' => $item['id'],'type' => $item['a']))}" data-confirm="确认使用吗？">确认核销</a>
{/if}
{if $item['status'] == 4}
{if $item['plugin'] != 'citydelivery'}
<a class="text-primary" data-toggle="ajaxModal"  href="{php echo web_url('order/wlOrder/send', array('id' => $item['id'],'type' => $item['a'],'edit_flag'=>1))}">修改物流</a>
<a class="text-primary" data-toggle='ajaxPost'  href="{php echo web_url('order/wlOrder/sendcancel', array('id' => $item['id'],'type' => $item['a']))}" data-confirm="确认取消发货？">取消发货</a>
<a class="btn btn-primary btn-xs" data-toggle="ajaxPost"  href="{php echo web_url('order/wlOrder/collect', array('id' => $item['id'],'type' => $item['a']))}" data-confirm="确认买家收货？">确认收货</a>
{else}
<a class="btn btn-primary btn-xs" data-toggle="ajaxPost"  href="{php echo web_url('order/wlOrder/finishdelivery', array('id' => $item['id']))}" data-confirm="确认商品送达？">确认送达</a>
{/if}
{/if}
{if $item['status'] == 2}
<a class="btn btn-primary btn-xs" data-toggle='ajaxPost'  href="{php echo web_url('order/wlOrder/finish', array('id' => $item['id'],'type' => $item['a']))}" data-confirm="确认完成订单吗？">确认完成</a>
{/if}
{if ($item['status'] == 9 || $item['status'] == 1) && empty($item['pftflag'])}
<a class="btn btn-primary btn-xs" data-toggle='ajaxModal'  href="{php echo web_url('order/wlOrder/changetime', array('id' => $item['id'],'type' => $item['a']))}">修改时限</a>
{/if}
